package com.base.array;

/**
 * 数组越界
 */
public class Demo02 {
    public static void main(String[] args) {
        int[] arr = {1,5,6,8,9}; //索引从0开始
        System.out.println(arr[5]);  //ArrayIndexOutOfBoundsException
    }
}
